#include "ContentParticules.h"

/**
* Constructeur
*/
ContentParticules::ContentParticules() : cardinality( ONLY_ONE )
{
}

ContentParticules::ContentParticules( CARDINALITY card ) : cardinality( card )
{
}

/**
* Destructeur
*/
ContentParticules::~ContentParticules()
{
	// TODO
}

void ContentParticules::printMe()
{
}

CARDINALITY ContentParticules::getCardinality() const
{
	return cardinality;
}

string ContentParticules::getCardinalityString()
{
	switch (cardinality) {
		case ONLY_ONE:
			return "";
		case ZERO_OR_MORE:
			return "*";
		case ONE_OR_MORE:
			return "+";
		case OPTIONNAL:
			return "?";
	}
	return "ERROR";
}

void ContentParticules::setCardinality(CARDINALITY newCardinality)
{
	cardinality = newCardinality;
}
